import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import '@/styles/globals.css'; 

const geistSans = Geist({
  variable: "--font-geist-sans",
  subsets: ["latin"],
});

const geistMono = Geist_Mono({
  variable: "--font-geist-mono",
  subsets: ["latin"],
});

export const metadata: Metadata = {
  title: "侯光辉的个人博客 - 与开发者共同进步",
  description: "侯光辉的Java和React技术博客，分享实战教程、开发心得和最佳实践，与开发者共同进步，一起成长。",
  keywords: "Java, React, 全栈开发, 技术博客, 共同进步, 开发者社区, Spring Boot, Next.js",
  authors: [{ name: "侯光辉" }],
  openGraph: {
    title: "侯光辉的技术博客 - 与开发者共同进步",
    description: "Java和React技术分享，实战教程与开发心得",
    type: "website",
  },
  twitter: {
    card: "summary",
    title: "侯光辉的个人博客",
    description: "与开发者共同进步的技术分享平台",
  },
  icons: {
    icon: '/favicon.svg',
  },
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en">
      <body
        className={`${geistSans.variable} ${geistMono.variable} antialiased`}
      >
        {children}
      </body>
    </html>
  );
}
